package com.itchen.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @author げっしょく
 * @date 2021/9/12
 */

@Component
@Aspect
public class MyAdvice {

    @Pointcut("execution(void com.itchen.dao.BookDao.delete())")
    public void pt() {
    }

    @Before("pt()")
    public void sou() {
        System.out.println(System.currentTimeMillis());
    }
}
